home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / i / internet / software / tuwtcpsr / nettrace.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-07  |  356 b   |  25 lines

  1. #define TRACECOOKIE  0x54524345L
  2.  
  3. #define TRACEINIT    \
  4. {    \
  5. COOKIE    *co;    \
  6. \
  7.     co = get_cookie(TRACECOOKIE); \
  8.     if(!co)    \
  9.     {    \
  10.         nettrace = NULL; \
  11.     } \
  12.     else \
  13.     { \
  14.         nettrace = (void (*)(register char *))(co->val); \
  15.     } \
  16. }
  17.  
  18. #define TRACE(str)        if(nettrace)    \
  19.                             nettrace(str); \
  20.                         else \
  21.                             TRACEINIT
  22.  
  23.  
  24. extern void (*nettrace)(register char *);
  25.